package com.maxlen.coupon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.maxlen.common.utils.PageUtils;
import com.maxlen.common.utils.R;
import com.maxlen.coupon.entity.CouponEntity;
import com.maxlen.coupon.entity.dto.CouponAddUpdateDTO;

import java.util.List;
import java.util.Map;

/**
 * 优惠券信息
 *
 * @author MaxLen
 * @email MaxLen@gmail.com
 * @date 2022-10-27 10:43:47
 */
public interface CouponService extends IService<CouponEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 发布优惠券
     * @param couponId 优惠券 id
     * @return
     */
    R publishCoupon(String couponId);

    R saveCoupon(CouponAddUpdateDTO couponAddUpdateDTO);

    R updateCoupon(CouponAddUpdateDTO couponAddUpdateDTO);

    R deleteCoupon(List<Long> asList);

    R infoCoupon(Long id);

    R getUseTypeList(String id, Integer useType);

    R getCategoryImage(List<Long> categoryIdList);

    R getSpuImage(List<Long> spuIdList);

    R getReceiveCoupon();
}

